package com.myhome.mappers;
import com.myhome.domain.AdminBank;
import com.myhome.dto.AdminBankDto;
import com.myhome.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author QYiXin
 * @Date 2021 10 25 19 55
 **/
@Mapper
public interface AdminBankMappers {
    AdminBankMappers INSTANCE = Mappers.getMapper(AdminBankMappers.class);

    /**
     * 将entity转化为dto
     *
     * @param source
     * @return
     */
    AdminBankDto convert2Dto(AdminBank source);

    /**
     * 将dto对象转化为entity对象
     *
     * @param source
     * @return
     */
    AdminBank convert2Entity(AdminBankDto source);


    /**
     * 将entity转化为dto
     *
     * @param source
     * @return
     */
    List<AdminBankDto> convert2Dto(List<AdminBank> source);

    /**
     * 将dto对象转化为entity对象
     *
     * @param source
     * @return
     */
    List<AdminBank> convert2Entity(List<AdminBankDto> source);
}
